package com.design.mode.creational.simplefactory;

/**
 * @author liuhuan
 * @date 2018/12/4 14:07
 * @description
 */
public class VedioFactory {

    public Vedio produce(String type){
        if("java".equalsIgnoreCase(type)){
            return new JavaVedio();
        }else if("python".equalsIgnoreCase(type)){
            return new PythonVedio();
        }
        return null;
    }
}
